package com.gticket.customerbackend.service.impl;

import com.gticket.customerbackend.mapper.StatisticsMapper;
import com.gticket.customerbackend.pojo.Statistics;
import com.gticket.customerbackend.service.StatisticsService;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Data
@Service
public class StatisticsServiceImpl implements StatisticsService {
    @Autowired
    private StatisticsMapper statisticsMapper;
    @Override
    public List<Statistics> listStatistics(Statistics statistics) {
        return statisticsMapper.listStatistics(statistics);
    }

    @Override
    public List<Statistics> listTimes(Statistics statistics) {
        return statisticsMapper.listTimes(statistics);
    }

    @Override
    public List<Statistics> listMovies(Statistics statistics) {
        return statisticsMapper.listMovies(statistics);
    }
}
